var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(d, c, b) {
    if (cm.getMapId() == 910400200) {
        if (!cm.isQuestActive(32249)) {
            cm.dispose();
            return
        }
    } else {
        cm.dispose();
        return
    }
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.askYesNo("需要通过次元传送口移动到万神殿吗？", 0, 1520011)
        } else {
            if (status === a++) {
                cm.npc_LeaveField("oid=1226864");
                cm.dispose();
                cm.warp(400000001, 1, false)
            }
        }
    }
};